{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import metakernel"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"'0.13.7'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"metakernel.__version__"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false,
"format": "row"
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"\n",
"\n",
"\n"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%dot\n",
"graph MoDepends {\n",
" M0 [label=\"Mod 0: Intro to Computing\", shape=box, URL=\"https://cs.brynmawr.edu/\"]\n",
" M1 [label=\"Mod 1: Intro to Python\", shape=box]\n",
" M2 [label=\"Mod 2: Numerical Errors & Speed\", shape=box]\n",
" M3 [label=\"Mod 3: Iteration\", shape=box]\n",
" M4 [label=\"Mod 4: Differentiation\", shape=box]\n",
" M5 [label=\"Mod 5: Integration\", shape=box]\n",
" M6 [label=\"Mod 6: Linear Equations\", shape=box]\n",
" M8 [label=\"Mod 8: Eigenequations\", shape=box]\n",
" M9 [label=\"Mod 9: Fourier Analysis\", shape=box]\n",
" M10 [label=\"Mod 10: Diff'l Equations\", shape=box]\n",
" M11 [label=\"Mod 11: Monte Carlo\", shape=box]\n",
" M0->M1->M2\n",
" M2->M3\n",
" M2->M4\n",
" M2->M5\n",
" M2->M6\n",
" M3->M11\n",
" M4->M9\n",
" M3->M10\n",
" M4->M10\n",
" M6->M8\n",
" \n",
"}"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"application/javascript": [
"\n",
"document.element = element;"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%javascript\n",
"\n",
"document.element = element;"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
}
],
"source": [
"%%python\n",
"\n",
"from metakernel.display import display, HTML\n",
"\n",
"display(HTML(\"hello\"))"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%%dot\n",
"\n",
"digraph G {Hello->World}"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
}
],
"source": [
"%%python\n",
"\n",
"from IPython.display import display, HTML\n",
"\n",
"\n",
"display(HTML(\"hello\"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%download"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}